PDF4Java Reference Documentation
com.o2sol.pdf4java.core.security Package / PDFRc4SecurityHandler Class / setKeySize Method
The size, in bits, of the secret key used by the security handler.
In This Topic
    setKeySize Method
    In This Topic
    Sets the size, in bits, of the secret key used by the security handler.
    RC4 supports only the following key sizes: 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120 and 128.
    Syntax
    public void setKeySize( 
       int keySize
    )

    Parameters

    keySize
    The size, in bits, of the secret key used by the security handler.
    Exceptions
    ExceptionDescription
    When keySize uses an unsupported value.
    See Also